import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from "typeorm";

@Entity("events")
export class Event {
  @PrimaryGeneratedColumn()
  eventId: number;
  @Column()
  userId: number;

  @Column({ length: 50 })
  eventName: string;

  @Column({ length: 100 })
  eventReson: string;

  @Column()
  eventTime: string;

  @CreateDateColumn({ name: "created_at" })
  createdAt: Date;
}
